package com.zking.web.lj;

import javax.mail.MessagingException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zking.service.lj.MailService;

@Controller
public class MailController {
	@Autowired
	MailService mailService;
	
	@RequestMapping("sendMail")
	public String sendMail(String to, String subject, String content){
		 //to = "643259624@qq.com";
		//content = "不合格";
		 subject = "面试审核结果";
		 mailService.sendSimpleMail(to, subject, content);
		 return "redirect:delinfobj";
	}
}
